package dnl.net.netclip;

import java.awt.BorderLayout;

import javax.swing.JDialog;
import javax.swing.JLabel;
import javax.swing.JProgressBar;

public class ProgressDialog extends JDialog {

	private JProgressBar progressBar = new JProgressBar();
	private JLabel label = new JLabel();

	public ProgressDialog() {
		setAlwaysOnTop(true);
		progressBar.setIndeterminate(true);
		this.getContentPane().add(label, BorderLayout.NORTH);
		this.getContentPane().add(progressBar, BorderLayout.CENTER);
	}

	public void setText(String text){
		label.setText(text);
	}
}
